#define _CRT_SECURE_NO_WARNINGS 1
#include <iostream>
//#include<locale.h>
//#include <climits>
using namespace std;

int main()
{
    ////int max_int = INT_MAX;
    ////int min_int = INT_MIN;
    ////cout << "The maximum value that can be stored in an int variable is: " << max_int << endl;
    ////// 2147483647
    ////cout << "The minimum value that can be stored in an int variable is: " << min_int << endl;
    ////// -2147483648
    char str[] = "123456fdfdf89";
    for (int i = 0; i <sizeof(str); i++)
    {
        if (isdigit(str[i]))
        {
            cout << str[i];
        }
    }

    return 0;
}
//}
//int main()
//{
//	string s1("   123435djj");
//	int i = atoi(s1.c_str());
//	cout << i << endl;
//	return 0;
//}